package com.demo.sys.dao.mapper;

import com.demo.sys.entity.SysMenuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author zwy
 * @since 2023-08-10
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {

    /**
     * 查询管理员的所有权限
     * @param type
     * @return
     */
    List<String> getPermsList(@Param("type") String type);
}
